package com.xckj.cycling.model

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

data class NavigationModel(var detail: NavigationDetailModel? = null)
data class NavigationDetailModel(
    var user_post: String? = null,
    var user_lat: String? = null,
    var user_lng: String? = null,
    var end_post: String? = null,
    var end_lng: String? = null,
    var end_lat: String? = null,
    var distance: String? = null,
    var actualdistance: String? = null,

    var estimatedDuration: Int = 0,
    var actualDuration: Int = 0,
    var climb: Int = 0,
    var calories: String? = null,
    var createtime: String? = null,
    var endtime: String? = null,
    var updatetime: String? = null,
    var lineimg: String? = null,
    var fulllineimg: String? = null,
    var startdate: String? = null,
    var stend: String? = null,
    var mileage: String? = null,
    var timelength: String? = null,

    var num: String? = null,
    var overall: OverAll? = null,
    var heart: ChartValue?,
    var speed: ChartValue?,
    var highly: ChartValue?,
    var ground: BicycleAndGround? = null,
    var bicycleType: BicycleAndGround? = null
) {
}

@Parcelize
data class ChartValue(
    var x: List<Double>?,
    var data: List<Double>?,
    var unit: String? = null,
    var climb: String? = null
):Parcelable

data class OverAll(
    var uniform: String? = null,

    var climb: String? = null,

    var mileage: String? = null,

    var calories: String? = null,

    var number: String? = null,

    var average: String? = null,
    var entire: String? = null,
    var fastest: String? = null,
    var cumulativeRise: String? = null,
    var cumulativeLow: String? = null,
    var totalcalories: String? = null,
)

data class BicycleAndGround(var txt: String? = "", var data: List<Type>? = null)
data class Type(var id: Int = 0, var name: String? = null)